var limsBatchCategory = Gikam.getPageObject({

    getEditListColumns : function() {
        return [ {
            checkbox : true
        }, {index: true},{
            field : 'batchTypeCode',
            title : 'T_LIMS_BATCH_CATEGORY.BATCHTYPECODE',
            validators: ['notEmpty'],
            width : 140,
        }, {
            field : 'batchTypeName',
            title : 'T_LIMS_BATCH_CATEGORY.BATCHTYPENAME',
            width : 140,
            validators: ['notEmpty'],
            editor : true
        }, {
            field : 'detailPage',
            title : 'T_LIMS_BATCH_CATEGORY.DETAILPAGE',
            width : 140,
            editor : true
        }, {
            field : 'template',
            title : 'T_LIMS_BATCH_CATEGORY.TEMPLATE',
            width : 140,
            editor : true
        }, {
            field : 'dept',
            title : 'T_LIMS_BATCH_CATEGORY.DEPT',
            editor : true
        } ];
    },

    getBaseInfoFormFields : function() {
        return [ {
            field : 'batchTypeCode',
            title : 'T_LIMS_BATCH_CATEGORY.BATCHTYPECODE',
            preInsert: true,
            validators: ['unique[/secure/basemodule/basedata/batch-categorys/action/validate-unique]'],
        }, {
            field : 'batchTypeName',
            title : 'T_LIMS_BATCH_CATEGORY.BATCHTYPENAME',
            preInsert: true,
            validators : [ 'strLength[0,22]' ]
        }, {
            field : 'detailPage',
            title : 'T_LIMS_BATCH_CATEGORY.DETAILPAGE',
            validators : [ 'strLength[0,11]' ]
        }, {
            field : 'template',
            title : 'T_LIMS_BATCH_CATEGORY.TEMPLATE',
            validators : [ 'strLength[0,11]' ]
        }, {
            field : 'dept',
            title : 'T_LIMS_BATCH_CATEGORY.DEPT',
            validators : [ 'strLength[0,11]' ]
        }, ];
    },

    getChooseListColumns : function() {
        return [ {index: true},{
            field : 'batchTypeCode',
            title : 'T_LIMS_BATCH_CATEGORY.BATCHTYPECODE',
            width : 140,
        }, {
            field : 'batchTypeName',
            title : 'T_LIMS_BATCH_CATEGORY.BATCHTYPENAME',
            width : 140,
        }, {
            field : 'detailPage',
            title : 'T_LIMS_BATCH_CATEGORY.DETAILPAGE',
            width : 140,
        }, {
            field : 'template',
            title : 'T_LIMS_BATCH_CATEGORY.TEMPLATE',
            width : 140,
        }, {
            field : 'dept',
            title : 'T_LIMS_BATCH_CATEGORY.DEPT'
        }, ];
    },

    baseUrl : IFM_CONTEXT + '/secure/basemodule/basedata/batch-categorys'
});
